package utils

import (
	"fmt"
	"video-srvice/pkg"
)

type Sms interface {
	SendSms() error
}
type AliSms struct {
}

func (a *AliSms) SendSms(mobile, code string) error {
	fmt.Println("阿里云短信")
	pkg.AliSms(mobile, code)
	return nil
}

type Huyisms struct {
}

func (h *Huyisms) SendSms(mobile, code string) error {
	fmt.Println("互亿无限短信")
	pkg.HuyiSms(mobile, code)
	return nil
}
